package com.group4.order.service;

import com.study.dto.UserDTO;
import com.study.util.ResponseResult;
import org.springframework.beans.BeanUtils;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

//被调用方的项目名
@FeignClient("service-rbac")
@Component
public interface UserService { //被调用方的接口名
    /**
     * 根据会员id查询会员
     * @param id
     * @return
     */
    @GetMapping("/rbac/user/getById/{id}")
    public ResponseResult<UserDTO> getUserById(@PathVariable String id);


}
